{% extends "base.html" %}

{% block class %}Blog{% endblock %}

{% block main %}
<h3>Post</h3>
<dl>
    <dd> 
    {% for post in user.post_set.all %}
        <a href="/blog/update/{{ post.slug }}/">{{ post.title }}</a>
        <a href="/blog/delete/{{ post.slug }}/">delete</a>
    {% endfor %}
    </dd>
    <a href="/blog/create/">new</a>
</dl>
<h3>Tag</h3>
<dl>
    <dd> 
    {% for tag in user.tag_set.all %}
        <a href="/blog/tag/update/{{ tag.slug }}/">{{ tag.title }}</a>
        <a href="/blog/tag/delete/{{ tag.slug }}/">delete</a>
    {% endfor %}
    <a href="/blog/tag/create/">new</a>
    </dd>    
</dl>
{% endblock %}
